from PyQt4.QtCore import *
from PyQt4.QtGui import *

class QSCPView(QTreeView):
    def __init__(self, *args):
        QTreeView.__init__(self, *args)
        
    def mouseDoubleClickEvent(self, event):
        self.emit(SIGNAL('doubleClicked(PyQt_PyObject)'), event)
        
    def keyPressEvent(self, event):
        if event.key() == Qt.Key_F2:
            print 'aaaa'
            self.emit(SIGNAL('f2Pressed()'))
        QTreeView.keyPressEvent(self, event)
